package com.xx.springsecuritydemo.main.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaoXuan
 * @since 2024-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("enabled")
    private Boolean enabled;

    /**
     * 用户帐户是否被锁定1未锁定0锁定
     */
    @TableField("accountNonExpired")
    private Boolean accountNonExpired;

    /**
     * 帐户是否过期1未过期0过期
     */
    @TableField("accountNonLocked")
    private Boolean accountNonLocked;

    /**
     * 凭据是否有效1有效0无效
     */
    @TableField("credentialsNonExpired")
    private Boolean credentialsNonExpired;


}
